/*
 *  Copyright (c) 2015—2030 GantSoftware.Co.Ltd. All rights reserved.
 *  <p>
 *  Unless required by applicable law or agreed to in writing, software
 *  is not allowed to be distributed or copied without the license from
 *  GantSoftware.Co.Ltd. Please contact the company for more information.
 */

package com.gantang.gax.engine.exception;

/**
 * Base exception for framework wide exception.
 *
 * @author sherlockq
 */
public class EngineException extends RuntimeException {

    private static final long serialVersionUID = 853951323035870308L;

    protected Object[] params;

    protected EngineException() {
        super();
    }

    public EngineException(String message, Throwable cause) {
        super(message, cause);
    }

    public EngineException(String message) {
        super(message);
    }

    public EngineException(Throwable cause) {
        super(cause);
    }

    public EngineException(String message, Object... params) {
        super(message);
        this.params = params;
    }

    public EngineException(String message, Throwable cause, Object... params) {
        super(message, cause);
        this.params = params;
    }

    public Object[] getParams() {
        return this.params;
    }

}
